package com.travel.rabbit.controller.admin;

import com.travel.rabbit.entity.AdminRabbit;
import com.travel.rabbit.service.AdminRabbitService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (AdminRabbit)表控制层
 *
 * @author makejava
 * @since 2022-01-05 10:54:13
 */
@RestController
@RequestMapping("adminRabbit")
public class AdminRabbitController {
    /**
     * 服务对象
     */
    @Resource
    private AdminRabbitService adminRabbitService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public AdminRabbit selectOne(Integer id) {
        return this.adminRabbitService.queryById(id);
    }

}